<div th:fragment="frag(list)">
	<div class="modal fade" th:id="|${list.app.domprefix}-${list.id}-modal-create-button|">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">创建按钮</h4>
				</div>
				<div class="modal-body" data-bigradio>
					<input type="hidden" name="app">
					<input type="hidden" name="buttonview">
					<input type="hidden" name="button">
					<div class="box box-primary">
						<div class="box-body">
							<div class="form-group">
								<label class="control-label">名称</label>
								<input class="form-control" name="name" placeholder="请输入名称">
							</div>
							<div class="form-group" data-bigradio>
								<label class="control-label">类型</label>
								<div class="row">
									<th:block th:if="${list.isList()}">
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="create" name="type">创建</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="update" name="type">修改</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="import" name="type">导入</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="delete" name="type">删除</label>
											</div>
										</div>
									</th:block>
									<th:block th:if="${list.isForm()}">
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="submitCreate" name="type">提交（创建）</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="submitUpdate" name="type">提交（修改）</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="reset" name="type">重置</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="delete" name="type">删除</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="cancel" name="type">取消</label>
											</div>
										</div>
									</th:block>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="openTab" name="type">打开Tab</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="openWindow" name="type">打开Window</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="requestJson" name="type">请求JSON</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="custom" name="type">自定义</label>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label">顏色</label>
								<div class="row">
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-default" name="data[color]">default</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-primary" name="data[color]">primary</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-success" name="data[color]">success</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-info" name="data[color]">info</label>
										</div>
									</div><div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-danger" name="data[color]">danger</label>
										</div>
									</div><div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="btn-warning" name="data[color]">warning</label>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group hidden" data-bigradio-target="type.custom">
								<label class="control-label">URL</label>
								<input class="form-control" name="url" placeholder="请输入URL">
							</div>
							<div class="form-group hidden" data-bigradio-target="type.openTab">
								<label class="control-label">Tab配置（下面内容选填一项即可，当输入视图ID时，应用ID为必填，反之不需要）</label>
								<div class="checkbox">
									<input name="tabView" placeholder="请输入视图ID" style="padding:6px 12px;height:32px">
									<input name="tabApp" placeholder="请输入应用ID" style="padding:6px 12px;height:32px">
									<input name="tabUrl" placeholder="请输入加载页面URL" style="padding:6px 12px;height:32px">
								</div>
							</div>
							<div class="form-group hidden" data-bigradio-target="type.create,type.update,type.delete,type.submitCreate,type.submitUpdate,type.openTab,type.requestJson">
								<label class="control-label">请求参数</label>
								<input name="requestData" placeholder="请输入需带入请求的参数（json格式）" class="form-control">
							</div>
							<div class="form-group hidden" data-bigradio-target="type.requestJson,type.openWindow">
								<label class="control-label">URL（json请求URL或者openWindow页面的内容url）</label>
								<input class="form-control" name="requestUrl" placeholder="请输入URL">
							</div>
							<div class="form-group hidden" data-bigradio-target="type.openTab,type.requestJson">
								<label class="control-label">Tab配置（页面提交成功后的操作）</label>
								<div class="checkbox">
									<label><input type="checkbox" value='keepTab' name="tabViewSubmit"> 保持当前tab</label>
									<label><input type="checkbox" value='refreshTab' name="tabViewSubmit"> 刷新最后一个tab</label>
									<label><input type="checkbox" value='refreshList' name="tabViewSubmit"> 刷新列表数据</label>
								</div>
							</div>
							<th:block th:if="${list.isList()}">
							<div class="form-group" data-bigradio>
								<label class="control-label">单选多选</label>
								<div class="row">
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="none" name="selectType" checked>均可</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="single" name="selectType">单选</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="multiple" name="selectType">多选</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="singleornoe" name="selectType">单选或不选</label>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group hidden" data-bigradio-target="selectType.single">
								<label class="control-label">过滤器</label>
								<input class="form-control" name="data[buttonFilter]" placeholder='请输入按钮过滤器，例如：${xev_kaoshi_mzt} == "03"'>
							</div>
							</th:block>
							<div class="form-group">
								<label><input type="checkbox" value=1 name="required"> 必须（表单为只读时该按钮也显示）</label>
							</div>
							<div class="form-group">
								<label class="control-label">图标</label>
								<input class="form-control" name="icon" placeholder="请输入图标">
							</div>
							<div class="form-group">
								<label class="control-label">描述</label>
								<input class="form-control" name="description" placeholder="请输入描述">
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary fa fa-plus-circle"> 提交</button>
				</div>
			</div>
		</div>
	</div>
</div>
